package io;

import javax.xml.soap.Text;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class IODemo5 {
    public static void main(String[] args) {
        try (OutputStream output=new FileOutputStream("./test.txt",true)){
          //输入要写入的数据
            byte[] buffer=new byte[]{97,98,99};
            output.write(buffer,0,3);

            //一个字节进行写入造作
           /* int buffer1=97;
            output.write(buffer1);*/
        }catch (IOException e){
            throw new RuntimeException(e);
        }
    }
}
